<?php
/**
 * 随行付费率次日待生效服务类
 * User: 13651
 * Time: 2025/9/15 09:52
 */

namespace App\Services;

use App\Repository\VbillRateSaveLogRepo;
use Illuminate\Support\HigherOrderCollectionProxy;

class VbillRateSaveLogService  extends BaseService
{

    /**
     * 新增待生效数据
     * @param array $data
     * @param int $saveId
     * @return HigherOrderCollectionProxy|int|mixed
     */
    public function saveData(array $data,int $saveId)
    {
        return VbillRateSaveLogRepo::getInstance()->saveData($data,$saveId);
    }

    /**
     * 根据指定条件获取数据
     * @param array $where
     * @return \Illuminate\Database\Eloquent\Builder[]|\Illuminate\Database\Eloquent\Collection
     */
    public function getQueryData(array $where)
    {
        return VbillRateSaveLogRepo::getInstance()->getQueryData($where);
    }
}